package com.hotec.PROJECT_NAME;

import com.hotec.PROJECT_NAME.component.basic.SmsConfigure;
import com.hotec.PROJECT_NAME.config.encrypt.EncryptConfig;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
import tk.mybatis.spring.annotation.MapperScan;

import java.io.IOException;

/**
 * @author
 */
@SpringBootApplication
@EnableConfigurationProperties(value = {EncryptConfig.class, SmsConfigure.class})
@MapperScan(basePackages = {"com.hotec.PROJECT_NAME.**.mapper"})
@EnableRedisHttpSession
@EnableScheduling
public class HotecApplication {

    public static void main(String[] args) throws IOException {
//        35C0EE07C75840BDA2B799B210827A9758F93A7B8A6C447CA69C3ADC24E1A59A
        ConfigurableApplicationContext applicationContext = new SpringApplicationBuilder(HotecApplication.class)
                .web(WebApplicationType.SERVLET).build().run(args);
    }
}
